home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / CUJ9207.ARJ / 1007091A < prev    next >
Text File  |  1992-06-03  |  340b  |  16 lines

  1.  
  2. static void do_copy (int infile, int tmp_file, long len)
  3.    {
  4.      int to_do;
  5.      char buffer [SIZE_BUFFER];
  6.      do
  7.           {
  8.           to_do = (int) (min ((long) SIZE_BUFFER, len));
  9.           read (infile, buffer, to_do);
  10.           write (tmp_file, buffer, to_do);
  11.          } while (len -= to_do);
  12.      return ;
  13.    }
  14.  
  15.  
  16.